package com.sugar.MultiThread.a06threadmethod3;

/**
 * 实现方式一：继承Thread
 * @author felix
 * @date 2025/2/26 09:32
 */
public class MyThread1 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(getName()+"@"+i);
        }
    }
}
